home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
COMMUNIC
/
BULLETIN
/
0340A.ZIP
/
MAIL101.ARC
/
RUNOPUS.BAT
< prev
next >
Wrap
DOS Batch File
|
1987-02-09
|
4KB
|
153 lines
rem This is the RUNOPUS.BAT I use on CompuSci. You probably don't need
rem one so complex!!
rem--------------------------------------------------------------------
:START
echo off
cd\opus
watchdg2 off
rem
rem Here we invoke OPUS. We are using the '-u' command line switch
rem to make OPUS unpacket any ARCmail packets it may find before it
rem goes online. This is optional -- see your documentation.
rem
cls
opus opus -u
echo off
rem
rem Here we check for ERRORLEVELS do do various things...
rem ENDCALLER = Where OPUS goes after a caller disconnects.
rem This is an option in the OPUS CTL file.
rem START = The beginning of the BATch file.
rem FIDO = Where the outgoing mail is handled.
rem MAKELOGS = Daily maintenance.
rem ECHOMAIL = Where EchoMail is done.
rem QUICKTOSS = What happens after CRASHMAIL is received.
rem Another option -- see the CTL file.
rem CLEANUP = More daily maintenance.
rem
rem This is a VERY complex sample BATch file. Your need not be anything
rem like this at all. We have just tried to show most of the possibilities
rem which can be encountered.
rem
if errorlevel 25 goto ENDCALLER
if errorlevel 20 goto FIDO
if errorlevel 15 goto MAKELOGS
if errorlevel 12 goto ECHOMAIL
if errorlevel 10 goto CLEANUP
if errorlevel 2 goto START
GOTO FINIS
rem If you asked OPUS (in the CTL file) to exit after each caller, here
rem is where it would go. Under normal circumstances this is a feature
rem which doesn't have a lot of purpose unless you need to do some special
rem processing after each caller.
rem
:ENDCALLER
rem------------------------------Here is MAILCHEK Update
mailchek update 6/x 7/x
GOTO START
rem Since OPUS doesn't handle outgoing mail yet, you must have some other
rem mailer program do the work for you.
rem Fido(tm) works fine too.
rem
:FIDO
cd\opus\matrix
fido_ibm 1/J /Y /P/ 15/F 15/S 60/L 120/D 400/K 128/V 30/W 30/A 20/G /U /2
CD\opus
GOTO START
rem We go here for daily maintenance...
rem
:CLEANUP
rem
rem do whatever...
renum -r 0 -r 1 -r 2 -r 3 -r 4 -r 5 -r 6 -r 7 -r 9
rem-----------------------Here is MAILCHEK Compile
mailchek compile 6/x 7/x
rem Toss all mail that has to be fixed.... EchoMail stuff
ARCMAIL from 135/1
TOSSMAIL run -delay
TIDYMAIL OPUSNET -cronsort
TIDYMAIL MIAMINET -cronsort
cd\opus\matrix
del c:sysop.log
daynbr ren mailer.log mailer.@###
daynbr \opus\arca mailer.arc mailer.@###
daynbr del mailer.@###
cd\opus
rem
rem If a new nodelist file NDIFF???.ARC has arrived process it and generate
rem new routing and nodelist files
cd\opus\matrix
if exist c:\opus\fidofile\ndiff???.arc goto process
goto start
:process
copy c:\opus\fidofile\ndiff???.arc
del c:\opus\fidofile\ndiff???.arc
xarc ndiff???.arc
editnl
del route.b
del route.c
del route.d
del nodelist.bbs
xlatlist
routegen
opusnode -f
del *.fon
del nodediff.*
cd\opus
rem
GOTO START
rem Here is where we handle EchoMail if you choose to do your own toss
rem and scan. Remember that OPUS can do toss automatically for you if
rem you choose. See the documentation and the CTL file for examples.
rem
:ECHOMAIL
rem do toss, scan, arcmail, killdupes, whatever...
scanmail run -delay
arcmail to 135/1
GOTO START
rem If you choose it in the CTL file, OPUS will exit after it receives
rem CRASHMAIL to do any processing you want. This is also where OREMOTE
rem lives if you use it (see OREMOTE documentation -- a separate utility).
rem
:QUICKTOSS
rem do whatever...
rem do OREMOTE...
GOTO START
rem Just another maintenance thingy to liven up the BATch file...
rem
:MAKELOGS
rem how about ARCing those massive logs?
rem
opususrt opus.log > useract.log
daynbr ren anewuser.bbs anewuser.@###
daynbr ren opus.log opus.@###
daynbr ren useract.log useract.@###
daynbr arca opuslog.arc opus.@###
daynbr arca useract.arc useract.@###
daynbr arca anewuser.arc anewuser.@###
wait 500
GOTO START
rem And here is where we go when you hit control-c from the keyboard...
rem
:FINIS
cls
echo CompuSci OPUS done for the Day.